package com.zwps.biz.api.model.dto.file.record.biz.setting;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

import com.zwps.common.api.validator.IntOption;

/**
 * @author shanwen
 * @description:
 * @date 2023-09-15
 * @ClassName AddFileRecordBizSettingDTO
 */
@Schema(description = "新增文件业务表设置")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class AddFileRecordBizSettingDTO {


    @Schema(description = "业务表")
    @NotBlank
    private String bizTable;


    @Schema(description = "业务表名")
    private String bizTableName;


    @Schema(description = "是否视频压缩（0：否|1：是|2：跟随系统）")
    @IntOption({0,1,2})
    private Integer videoCompress;


    @Schema(description = "视频是否截取封面（0：否|1：是|2：跟随系统）")
    @IntOption({0,1,2})
    private Integer videoCover;


    @Schema(description = "视频封面大小截取策略（0：自适应|1：固定宽高|2：跟随系统）")
    @IntOption({0,1,2})
    private Integer videoCoverCaptureStrategy;


    @Schema(description = "视频封面图片宽度（px）")
    private Integer videoCoverCaptureWidth;


    @Schema(description = "视频封面图片高度（px）")
    private Integer videoCoverCaptureHeight;


    @Schema(description = "是否图片压缩（0：否|1：是|2：跟随系统）")
    @IntOption({0,1,2})
    private Integer pictureCompress;


    @Schema(description = "图片压缩后宽度（px）")
    private Integer pictureCompressWidth;


    @Schema(description = "图片压缩后高度（px）")
    private Integer pictureCompressHeight;


    @Schema(description = "压缩图片是否添加水印（0：否|1：是）")
    @IntOption({0,1})
    private Integer pictureCompressWatermark;


    @Schema(description = "文件水印文本")
    private String watermarkText;
}
